package com.example.controller;

import com.example.entity.User;
import com.example.service.UserService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class controller {
    @Reference(check = false)
    private UserService userService;
    @GetMapping("/api/getUserList.do")
    List<User> getUserList(){
        System.out.println("consumer ........");
        return userService.getUserList();
    }
}
